package com.itheima.book.entry;
//程序入口，提供一个main方法
//创建BookController对象，调用start方法启动程序

import com.itheima.book.controller.Book2Controller;
import com.itheima.book.controller.BookController;

import java.util.Random;

public class BookMenagerEntry {
    public static void main(String[] args) {

        Random random = new Random();
        int r = random.nextInt(2);
        switch (r) {
            case 0:
                BookController bookController = new BookController();
                bookController.start();
                break;
            case 1:
                Book2Controller book2Controller = new Book2Controller();
                book2Controller.start();
                break;
        }
    }
}
